import request from '@/utils/request'

// 设备分类列表/devManufacturer/devManufacturerList
export function manufacturerList(data, gymId) {
  return request({
    url: '/do?c=922001',
    method: 'post',
    headers: { gymId },
    data: data
  })
}

// 设备分类列表POST /devManufacturer/manufacturerDetail
export function manufacturerDetail(data, gymId) {
  return request({
    url: '/do?c=922002',
    method: 'post',
    headers: { gymId },
    data: data
  })
}
// 灯控账号配置
export function accountConfig(data, gymId) {
  return request({
    url: '/do?c=940002',
    method: 'post',
    headers: { gymId },
    data: data
  })
}
// 灯控账号配置详情
export function accountInfo(data, gymId) {
  return request({
    url: '/do?c=940003',
    method: 'post',
    headers: { gymId },
    data: data
  })
}
// 灯控列表
export function lightList(data, gymId) {
  return request({
    url: '/do?c=940006',
    method: 'post',
    headers: { gymId },
    data: data
  })
}
// 灯控规则配置
export function ruleConfig(data, gymId) {
  return request({
    url: '/do?c=940004',
    method: 'post',
    headers: { gymId },
    data: data
  })
}
// 灯控规则配置详情
export function ruleInfo(data, gymId) {
  return request({
    url: '/do?c=940005',
    method: 'post',
    headers: { gymId },
    data: data
  })
}
// 灯控同步设备
export function syncDevice(data, gymId) {
  return request({
    url: '/do?c=940001',
    method: 'post',
    headers: { gymId },
    data: data
  })
}
// 绑定场区场地
export function bindArea(data, gymId) {
  return request({
    url: '/do?c=940007',
    method: 'post',
    headers: { gymId },
    data: data
  })
}
// 场区场地详情
export function bindInfo(data, gymId) {
  return request({
    url: '/do?c=940008',
    method: 'post',
    headers: { gymId },
    data: data
  })
}
// 一键关灯
export function closeLight(data, gymId) {
  return request({
    url: '/do?c=940009',
    method: 'post',
    headers: { gymId },
    data: data
  })
}
// 单线路开关灯
export function controlLine(data, gymId) {
  return request({
    url: '/do?c=940010',
    method: 'post',
    headers: { gymId },
    data: data
  })
}
// 定时器列表
export function timerList(data, gymId) {
  return request({
    url: '/do?c=940011',
    method: 'post',
    headers: { gymId },
    data: data
  })
}
// 删除定时器
export function delTimer(data, gymId) {
  return request({
    url: '/do?c=940013',
    method: 'post',
    headers: { gymId },
    data: data
  })
}
// 添加编辑定时器
export function timerSave(data, gymId) {
  return request({
    url: '/do?c=940012',
    method: 'post',
    headers: { gymId },
    data: data
  })
}
// 设备线路关联
export function devLine(data, gymId) {
  return request({
    url: '/do?c=940014',
    method: 'post',
    headers: { gymId },
    data: data
  })
}
// 监控点列表
export function monitoryList(data, gymId) {
  return request({
    url: '/do?c=950002',
    method: 'post',
    headers: { gymId },
    data: data
  })
}
// 同步海康监控点列表
export function getSoftDownLoad(data, gymId) {
  return request({
    url: '/do?c=950007',
    method: 'post',
    headers: { gymId },
    data: data
  })
}
// 同步海康监控点列表
export function monitory(data, gymId) {
  return request({
    url: '/do?c=950001',
    method: 'post',
    headers: { gymId },
    data: data
  })
}
// 账号配置
export function sxtaccountConfig(data, gymId) {
  return request({
    url: '/do?c=950003',
    method: 'post',
    headers: { gymId },
    data: data
  })
}
// 账号配置详情
export function sxtaccountConfigInfo(data, gymId) {
  return request({
    url: '/do?c=950004',
    method: 'post',
    headers: { gymId },
    data: data
  })
}

export function deviceList(data, gymId) {
  return request({
    url: '/do?c=921007',
    method: 'post',
    headers: { gymId },
    data: data
  })
}
export function deviceAdd(data, gymId) {
  return request({
    url: '/do?c=921001',
    method: 'post',
    headers: { gymId },
    data: data
  })
}
export function bfClick(data, gymId) {
  return request({
    url: '/do?c=980008',
    method: 'post',
    headers: { gymId },
    data: data
  })
}

export function deviceEdit(data, gymId) {
  return request({
    url: '/do?c=921002',
    method: 'post',
    headers: { gymId },
    data: data
  })
}

export function deviceStatusChange(data, gymId) {
  return request({
    url: '/do?c=921003',
    method: 'post',
    headers: { gymId },
    data: data
  })
}

export function deviceController(data, gymId) {
  return request({
    url: '/do?c=921008',
    method: 'post',
    headers: { gymId },
    data: data
  })
}

/*
  打印机相关接口
*/
// 添加打印机
export function printerAdd(data, gymId) {
  return request({
    url: '/do?c=930001',
    method: 'post',
    headers: { gymId },
    data: data
  })
}

// 删除打印机
export function printerDel(data, gymId) {
  return request({
    url: '/do?c=930003',
    method: 'post',
    headers: { gymId },
    data: data
  })
}

// 修改打印机
export function printerEdit(data, gymId) {
  return request({
    url: '/do?c=930004',
    method: 'post',
    headers: { gymId },
    data: data
  })
}

// 打印机列表
export function printerList(data, gymId) {
  return request({
    url: '/do?c=930005',
    method: 'post',
    headers: { gymId },
    data: data
  })
}

// 修改打印机状态
export function printerStatus(data, gymId) {
  return request({
    url: '/do?c=930006',
    method: 'post',
    headers: { gymId },
    data: data
  })
}
// 摄像头添加
export function cameraAdd(data, gymId) {
  return request({
    url: '/do?c=980001',
    method: 'post',
    headers: { gymId },
    data: data
  })
}

// 摄像头删除
export function cameraDel(data, gymId) {
  return request({
    url: '/do?c=980003',
    method: 'post',
    headers: { gymId },
    data: data
  })
}

// 摄像头详情
export function cameraInfo(data, gymId) {
  return request({
    url: '/do?c=980002',
    method: 'post',
    headers: { gymId },
    data: data
  })
}

// 摄像头列
export function cameraList(data, gymId) {
  return request({
    url: '/do?c=980004',
    method: 'post',
    headers: { gymId },
    data: data
  })
}
// 开启布防
export function openCameraArlming(data, gymId) {
  return request({
    url: '/do?c=980008',
    method: 'post',
    headers: { gymId },
    data: data
  })
}
// 场地灯控开关
export function devSiteLine(data, gymId) {
  return request({
    url: '/do?c=940015',
    method: 'post',
    headers: { gymId },
    data: data
  })
}
// 场馆灯控开关
export function devVenueLine(data, gymId) {
  return request({
    url: '/do?c=940016',
    method: 'post',
    headers: { gymId },
    data: data
  })
}
// 账号配置
export function accountConfigs(data, gymId) {
  return request({
    url: '/do?c=960001',
    method: 'post',
    headers: { gymId },
    data: data
  })
}
// 账号配置详情
export function accountConfigsInfo(data, gymId) {
  return request({
    url: '/do?c=960002',
    method: 'post',
    headers: { gymId },
    data: data
  })
}
// 客流量分析
export function crowdedAllCount(data) {
  return request({
    url: '/do?c=917009',
    method: 'post',
    data: data
  })
}
// 获取健康平台人流数据
export function crowdedAllCountb(data) {
  return request({
    url: '/do?c=917013',
    method: 'post',
    data: data
  })
}
// 添加/编辑设备
export function smcrowdedAdd(data) {
  return request({
    url: '/do?c=917005',
    method: 'post',
    data: data
  })
}
// 客流设备删除
export function smcrowdedDel(data) {
  return request({
    url: '/do?c=917007',
    method: 'post',
    data: data
  })
}
// 客流设备列表（海康）
export function smcrowdedHkList(data) {
  return request({
    url: '/do?c=917008',
    method: 'post',
    data: data
  })
}
// 新增核心免低区域
export function addFreeArea(data) {
  return request({
    url: '/do?c=300402',
    method: 'post',
    data: data
  })
}
// 新增免低区域与设备绑定
export function addFreeAreaDevBind(data) {
  return request({
    url: '/do?c=300407',
    method: 'post',
    data: data
  })
}
// 删除核心免低区域
export function deleteFreeArea(data) {
  return request({
    url: '/do?c=300404',
    method: 'post',
    data: data
  })
}
// 删除免低区域与设备绑定
export function deleteFreeAreaDevBind(data) {
  return request({
    url: '/do?c=300409',
    method: 'post',
    data: data
  })
}
// 获取免低区域可绑设备列表
export function getFreeAreaBindDevList(data) {
  return request({
    url: '/do?c=300410',
    method: 'post',
    data: data
  })
}
// 免低区域下设备绑定列表
export function getFreeAreaDevBindList(data) {
  return request({
    url: '/do?c=300406',
    method: 'post',
    data: data
  })
}
// 获取核心免低区域列表
export function getFreeAreaList(data) {
  return request({
    url: '/do?c=300401',
    method: 'post',
    data: data
  })
}
// 修改核心免低区域
export function updateFreeArea(data) {
  return request({
    url: '/do?c=300403',
    method: 'post',
    data: data
  })
}
// 采集卡片
export function collectCard(data) {
  return request({
    url: '/do?c=970002',
    method: 'post',
    data: data
  })
}
// 采集人脸
export function collectFace(data) {
  return request({
    url: '/do?c=970001',
    method: 'post',
    data: data
  })
}
// 同步所有人员至设备
export function syncAllUserToDev(data) {
  return request({
    url: '/do?c=921017',
    method: 'post',
    data: data
  })
}
// 【921016】门禁设备控制
export function equipmentControl(data) {
  return request({
    url: '/do?c=921016',
    method: 'post',
    data: data
  })
}
// 同步人员至设备
export function syncUserToDev(data) {
  debugger
  return request({
    url: '/do?c=921018',
    method: 'post',
    data: data
  })
}

/**
 * 取流、篮下摄像头绑定(新增)
 * @param {*} data
 * @returns
 */
export function cameraBind(data) {
  return request({
    url: '/do?c=981001',
    method: 'post',
    data: data
  })
}
/**
 * 取流、篮下摄像头绑定(编辑)
 * @param {*} data
 * @returns
 */
export function cameraBindEdit(data) {
  return request({
    url: '/do?c=981002',
    method: 'post',
    data: data
  })
}
/**
 * 取流、篮下摄像头绑定(列表)
 * @param {*} data
 * @returns
 */
export function cameraBindList(data) {
  return request({
    url: '/do?c=981003',
    method: 'post',
    data: data
  })
}

/**
 * 取流、篮下摄像头绑定(删除)
 * @param {object} data
 * @returns
 */
export function cameraBindRemove(data) {
  return request({
    url: '/do?c=981004',
    method: 'post',
    data: data
  })
}
/**
 * backend-设备管理-查询
 * @param {object} data
 * @returns
 */
export function queryMachineList(data) {
  return request({
    url: '/do?c=330201',
    method: 'post',
    data: data
  })
}
/**
 * 设备管理-模板新增
 * @param {object} data
 * @returns
 */
export function addDevTemplate(data) {
  return request({
    url: '/do?c=330208',
    method: 'post',
    data: data
  })
}
/**
 * 设备管理-新增
 * @param {object} data
 * @returns
 */
export function addMachine(data) {
  return request({
    url: '/do?c=330202',
    method: 'post',
    data: data
  })
}
/**
 * 设备管理-模板删除
 * @param {object} data
 * @returns
 */
export function delDevTemplate(data) {
  return request({
    url: '/do?c=330210',
    method: 'post',
    data: data
  })
}
/**
 * 设备管理-设备详情
 * @param {object} data
 * @returns
 */
export function detailMachine(data) {
  return request({
    url: '/do?c=330205',
    method: 'post',
    data: data
  })
}
/**
 * 设备管理-模板详情
 * @param {object} data
 * @returns
 */
export function devTemplateDetail(data) {
  return request({
    url: '/do?c=330213',
    method: 'post',
    data: data
  })
}
/**
 * 设备管理-模板列表
 * @param {object} data
 * @returns
 */
export function devTemplateList(data) {
  return request({
    url: '/do?c=330207',
    method: 'post',
    data: data
  })
}
/**
 * 设备管理-模块列表
 * @param {object} data
 * @returns
 */
export function moduleList(data) {
  return request({
    url: '/do?c=330212',
    method: 'post',
    data: data
  })
}
/**
 * -设备管理-多设备关联模板
 * @param {object} data
 * @returns
 */
export function setDevTemplateId(data) {
  return request({
    url: '/do?c=330206',
    method: 'post',
    data: data
  })
}
/**
 * -设备管理-模板编辑
 * @param {object} data
 * @returns
 */
export function updateDevTemplate(data) {
  return request({
    url: '/do?c=330209',
    method: 'post',
    data: data
  })
}
/**
 * -设备管理-模板状态修改
 * @param {object} data
 * @returns
 */
export function updateDevTemplateStatus(data) {
  return request({
    url: '/do?c=330211',
    method: 'post',
    data: data
  })
}
/**
 * -设备管理-编辑
 * @param {object} data
 * @returns
 */
export function updateMachine(data) {
  return request({
    url: '/do?c=330203',
    method: 'post',
    data: data
  })
}
/**
 * 设备管理-修改设备状态
 * @param {object} data
 * @returns
 */
export function updateMachineStatus(data) {
  return request({
    url: '/do?c=330204',
    method: 'post',
    data: data
  })
}
// 李帅--微光开灯
export function weiguangOpenLight(data) {
  return request({
    url: '/do?c=921117',
    method: 'post',
    data: data
  })
}
// 闸机账号配置
export function accessTypeUpdate(data) {
  return request({
    url: '/do?c=921022',
    method: 'post',
    data: data
  })
}
// 闸机账号配置查询
export function accessTypeDetail(data) {
  return request({
    url: '/do?c=900007',
    method: 'post',
    data: data
  })
}
// 新增/编辑
export function addOrUpdate(data) {
  return request({
    url: '/do?c=260001',
    method: 'post',
    data: data
  })
}
// 批量更新可检票种
export function pdaBatchUpdate(data) {
  return request({
    url: '/do?c=260005',
    method: 'post',
    data: data
  })
}
// 设备详情
export function pdaDetail(data) {
  return request({
    url: '/do?c=260004',
    method: 'post',
    data: data
  })
}
// 状态变更/删除
export function pdaHandle(data) {
  return request({
    url: '/do?c=260002',
    method: 'post',
    data: data
  })
}
// 设备列表
export function pdaList(data) {
  return request({
    url: '/do?c=260003',
    method: 'post',
    data: data
  })
}
// 门票列表
export function pdampList(data) {
  return request({
    url: '/do?c=420038',
    method: 'post',
    data: data
  })
}
// 套餐列表
export function pdatcList(data) {
  return request({
    url: '/do?c=411055',
    method: 'post',
    data: data
  })
}

// 课消列表  post /devCourse/list
export function devCourseList(data) {
  return request({
    url: '/do?c=360101',
    method: 'post',
    data: data
  })
}
// 修改课消机状态 post /devCourse/changeState
export function devCourseChangeState(data) {
  return request({
    url: '/do?c=360106',
    method: 'post',
    data: data
  })
}
// 客消详情 post /devCourse/getDetail 【360104
export function devCourseGetDetail(data) {
  return request({
    url: '/do?c=360104',
    method: 'post',
    data: data
  })
}
// 新增客消 post /devCourse/add 【360102】
export function devCourseAdd(data) {
  return request({
    url: '/do?c=360102',
    method: 'post',
    data: data
  })
}
// 编辑客消 post /devCourse/edit 【360103】
export function devCourseEdit(data) {
  return request({
    url: '/do?c=360103',
    method: 'post',
    data: data
  })
}
// 删除客消 post /devCourse/delete 360105
export function devCourseDelete(data) {
  return request({
    url: '/do?c=360105',
    method: 'post',
    data: data
  })
}
